@extends('admin.container')

@section('c-head')
    <script type="text/javascript">
        var PAGE_DATA = {
            DEFAULT: {
                company: "{{$lsinfo->member->information->company}}", // 公司名称
                load_addr: "{{$lsinfo->load_position}}", // 装车点
                unload_addr: "{{$lsinfo->unload_position}}", // 卸货点
                good_name: "{{$lsinfo->name}}", // 货物
                amount: "{{$lsinfo->amonut}}", // 数量
                tel: "{{$lsinfo->phone}}", // 联系电话
                @if($lsinfo->reply)
                reply_info : {
                    time : "{{date('Y-m-d',strtotime($lsinfo->updated_at))}}", // 处理时间
                    operator : "admin", // 操作人员
                    record : "{{$lsinfo->reply}}", // 处理记录
                },
                @else
                reply_info : null
                @endif
            },
            REST_API: {
                reply_url: "{{route('admin.logistics.enquiry.update',[$lsinfo->id])}}",
                back_url: "{{route('admin.logistics.enquiry.index')}}",
            }
        };
    </script>
@stop

@section('c-body')
    <div class="comm-title">
                    <span id="page-nav" class="title-msg">
                        物流询价管理 > 查看
                    </span>
    </div>
    <div class="comm-body">
        <div id="context_body" style="margin-top: 20px;">

            <div class="input-line">
                <div class="key-txt">
                    公司名称:
                </div>
                <div id="" class="right-val">
                </div>
            </div>

            <div class="input-line" style="">
                <div class="key-txt">
                    装车点:
                </div>
                <div class="right-val">

                </div>
            </div>

            <div class="input-line" style="">
                <div class="key-txt">
                    卸货点:
                </div>
                <div class="right-val">

                </div>
            </div>

            <div class="input-line" style="">
                <div class="key-txt">
                    货物:
                </div>
                <div class="right-val">

                </div>
            </div>

            <div class="input-line" style="">
                <div class="key-txt">
                    数量:
                </div>
                <div class="right-val">

                </div>
            </div>

            <div class="input-line" style="">
                <div class="key-txt">
                    联系电话:
                </div>
                <div class="right-val">

                </div>
            </div>

            <div id="reply-info" class=""
                 style="display:none;">

                <div class="input-line" style="">
                    <div class="key-txt">
                        处理时间:
                    </div>
                    <div class="right-val">

                    </div>
                </div>

                <div class="input-line" style="">
                    <div class="key-txt">
                        操作人员:
                    </div>
                    <div class="right-val">

                    </div>
                </div>

                <div class="input-line" style="">
                    <div class="key-txt">
                        处理记录:
                    </div>
                    <div class="right-val" style="width:380px;" title="<%=reply_info.record %>">


                    </div>
                </div>

            </div>

        </div>
        <!-- context_body -->

        <div class="input-line" style="height:40px;margin-top: 30px;">
            <div class="key-txt">
            </div>
            <div class="right-val">
                <button id="reply-btn" type="button" class="am-btn am-btn-primary am-btn-lg">
            <span style="display:block;">
                处理
            </span>
                </button>
                <a id="back-btn" type="button" class="am-btn am-btn-default am-btn-lg">
            <span style="display:block;">
                返回
            </span>
                </a>
            </div>
        </div>

    </div>

    <script type="text/template" id="form-templ">
        <div class="input-line" style="">
            <div class="key-txt">
                公司名称:
            </div>
            <div class="right-val">
                <%=company %>
            </div>
        </div>
        <div class="input-line" style="">
            <div class="key-txt">
                装车点:
            </div>
            <div class="right-val">
                <%=load_addr %>
            </div>
        </div>
        <div class="input-line" style="">
            <div class="key-txt">
                卸货点:
            </div>
            <div class="right-val">
                <%=unload_addr %>
            </div>
        </div>
        <div class="input-line" style="">
            <div class="key-txt">
                货物:
            </div>
            <div class="right-val">
                <%=good_name %>
            </div>
        </div>
        <div class="input-line" style="">
            <div class="key-txt">
                数量:
            </div>
            <div class="right-val">
                <%=amount %>
            </div>
        </div>
        <div class="input-line" style="">
            <div class="key-txt">
                联系电话:
            </div>
            <div class="right-val">
                <%=tel %>
            </div>
        </div>

        <% if(!!reply_info) { %>
        <div id="reply-info" class="" style="background-color: #f7f7f7; border:1px solid #dddddd; width: 500px; ">
            <div class="input-line" style="">
                <div class="key-txt">
                    处理时间:
                </div>
                <div class="right-val">
                    <%=reply_info.time %>
                </div>
            </div>
            <div class="input-line" style="">
                <div class="key-txt">
                    操作人员:
                </div>
                <div class="right-val">
                    <%=reply_info.operator %>
                </div>
            </div>
            <div class="input-line" style="">
                <div class="key-txt">
                    处理记录:
                </div>
                <div class="right-val" style="width:380px;" title="<%=reply_info.record %>">
                    <%=reply_info.record %>
                </div>
            </div>
        </div>
        <% } %>

    </script>

    <script type="text/template" id="reply-templ">
        <div class="reply-dialog">
            <textarea></textarea>

            <div class="btns-line">
                <button type="button" class="sel-edit-btn am-btn am-btn-primary am-btn-sm"
                        style="float:left;">
                    <div style="width:56px;">
                        确认修改
                    </div>
                </button>
                <button type="button" class="sel-cancel-btn am-btn am-btn-default am-btn-sm"
                        style="float:left; margin-left:35px;">
                    <div style="width:56px;">
                        取消
                    </div>
                </button>
            </div>
        </div>
    </script>


    <script src="/assets/b2b/admin/js/libs/dialog-min.js">
    </script>
    <script src="/assets/b2b/admin/js/libs/underscore-min.js">
    </script>

    <script src="/assets/b2b/admin/js/pages/28.js"></script>
@stop

